import request from '@/utils/request'

// 查询设备账号信息列表
export function listDeviceAccount(query) {
  return request({
    url: '/system/deviceAccount/list',
    method: 'get',
    params: query
  })
}

// 查询设备账号信息详细
export function getDeviceAccount(deviceId) {
  return request({
    url: '/system/deviceAccount/' + deviceId,
    method: 'get'
  })
}

// 新增设备账号信息
export function addDeviceAccount(data) {
  return request({
    url: '/system/deviceAccount',
    method: 'post',
    data: data
  })
}

// 修改设备账号信息
export function updateDeviceAccount(data) {
  return request({
    url: '/system/deviceAccount',
    method: 'put',
    data: data
  })
}

// 删除设备账号信息
export function delDeviceAccount(deviceId) {
  return request({
    url: '/system/deviceAccount/' + deviceId,
    method: 'delete'
  })
}
